package online.shenme.day12;

import java.io.*;

public class InputStreamReadTest {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr=new InputStreamReader(new FileInputStream("javaadvance/src/online/shenme/day12/test.txt"),"gbk");
        char[] chars=new char[1024];
        int read = isr.read(chars);
        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("javaadvance/src/online/shenme/day12/test1.txt"));
        osw.write(chars);
        isr.close();
        osw.close();

    }
}
